﻿using AnesSystem.Models.Model.Hospital.SC.WJZYY;
using AnesSystem.Services;
using AnesSystem.ViewModels.Operation.SC.WJZYY;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AnesSystem.Controls.Operation.SC.WJZYY
{
    /// <summary>
    /// HisAnesMethodInputCtrl.xaml 的交互逻辑
    /// </summary>
    public partial class HisAnesMethodInputCtrl : BaseCustomCtrl
    {
        public HisAnesMethodInputCtrl()
        {
            InitializeComponent();
            
        }

        private void _txtValue_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            DataManager.Instance.IsNotNeedSaveData = false;
            HisAnesMethodWin hisAnesMethodCtrl = new HisAnesMethodWin();
            SelHisAnesMethodModel sel = new SelHisAnesMethodModel();
            sel.HisAnesMethodModel.Name = this.Value.ToString();
            hisAnesMethodCtrl.SelectAnesMethod = sel;
            hisAnesMethodCtrl.ShowDialog();
            Value= hisAnesMethodCtrl.SelectAnesMethod.HisAnesMethodModel.Name;
        }
    }
}
